import { ResponseBase } from './response-base';

export class ErrorResponse extends ResponseBase {
  constructor(msg: string, code = 501) {
    super();
    this.msg = msg;
    this.status = 0;
    this.code = code;

    delete this.data;
  }
}
